﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AG.Editor.Core.Metadata
{
    /// <summary>
    /// 方向模式
    /// </summary>
    public enum AGDirectionMode
    {
        One,
        Two,
        Four,
        Eight,
        Sixteen,
    }

    public static class AGDirectionModeParse
    {
        public static int ToInt(AGDirectionMode model)
        {
            if (model == AGDirectionMode.Sixteen)
            {
                return 16;
            }
            else if (model == AGDirectionMode.Eight)
            {
                return 8;
            }
            else if (model == AGDirectionMode.Four)
            {
                return 4;
            }
            else if (model == AGDirectionMode.Two)
            {
                return 2;
            }
            return 1;
        }
    }
}
